Implemented Strategy pattern for accessing questions from the database.