Changed database to be virtual and created tempdatabase instead, all tests pass. To be implemented: filedatabase