Database getters

wrote database getters, added  QuestionType for factory use.
ConnectionData class not commited due to it containing sensitive
information. But it holds 3 static variables found in the MySQLDatabase
class. Wrote constructors for model classes.