Fix database command