Add exceptions instead of returning an error in the callback
Add getConnection to retrieve a connection - handles exception