Fixed db error at startup