user database and routing on auth