Fix database error in development