Added a way to add questions to database. Fixed bugs.