Added 'get_posts()' Method to Database Class