make mysql and postgres session storages print error messages in exceptions, refs #569