use mapping to get dbmap into handlers