update to orm for auto db creation