Removed unnecessary dependency on sql from auth middleware