fix db migrations