fix db commands