refactor sending new users to db