more db initialization work