initial progress on database mapping