fix db creation issue