Database authenticator behaviour / Pleroma implementation refactoring.