fix db creation