fixed tests, early property init, early db access on startup