Don't create loop.

fixes #446
Prevent bad usernames from beeing imported.

fixes #448
SQL queries update.

fixes #447