Database can now be accessed global

Database can now be accessed global and not just in the Authinator
function itself.