[mod]Fix database class bug