update error when droping empty database