Script to register users in a database