complete DB mapping