bug fixed in Database