Tests: Reorganize Database Tests.
Tests: Cleanup temporary files after unittests better.