Automated the creation of the user id to be the next max value