Get DB init out of main