workflow: use exceptions and parameters
customer: use exceptions and parameters
mysql_auth_backend: use exceptions and parameters; add affectedRows db proxy method
monitor: use exceptions for db
scm: use db exceptions and parameters