fixed wrong link to database from posts.php file