moved the escape to the db abstraction class.