Automatize user accounts
You can achieve this with the Migrate module.  As it has a 'destination' class that deals with User imports for you. 

The easiest way is to import into your database and use the 'MigrateSourceSQL' class as your 'source. 

https://www.drupal.org/project/migrate