db query builder added todo
db query builder added detection of primary key, if possible
db query builder up