added use of mappingdatabase