Updated databasemanager, databse SQL and made initial test code file