add database entry to map_factory