Performs insertion into the database when signing up