bug fixing. about the database.