Update to Database::get_posts Method