Fixes to db init
2 files changed