Fixed problems with database creation and added the getters in the main file.