Updated function for CRUD to add users to database and created function to check database for usernames that have already been registered.