fix model reference bug

db reference == key()