public static function searchItem($query) {
$db = Database::getConnection();
$sql = 'SELECT * FROM items WHERE item_name LIKE %:query%';
$result = $db->prepare($sql);
$result->bindParam(':query', $query, PDO::PARAM_STR);
$result->setFetchMode(PDO::FETCH_ASSOC);
$result->execute();
return $result->fetchAll();
}