fix bug about database' key