build a database map to interface with data