updated index.php to include search function shells
updated the getPopularBooks function in index.php to comply with the updated database schema