Follows #204 adds SQL auth backend

Merges on PR #204 and then adds an extra backend for custom SQL authentication.