added database connection stuff and new methods in the question class
merge conflicts