Get or create user in db on login