load primary key value when not it's empty
added code hint for db method