Adding members using a sql query only is not a good way as important update routines will not be called then. You would have to rebuild the system informations every time you manually add a user.

How would I rebuild system informations? I would prefer doing this in a scheduled task.