Fixed a bit in databaseMainTest