escaped inputs on repo functions / added db config templates for different db types