modify some errors in db sql