Fix multiple db error