fix username to be username instead of dbname and make file write atomic
Merge pull request #3 from tjikkun/directadmin_usermap

fix username to be username instead of dbname and make file write atomic