adjust db to real fields