Configuring the bundle proftpd + {mysql /postgresql} with storing passwords in md5 + salt

For a long time to me did not give rest the fact that passwords of users at me in a DB are stored in an open kind. It was also very inconvenient to manually add /remove users and change their passwords.
As a result, I configured the bundle proftpd + mod_sql + mod_sql_passwd with the storage of passwords in the form md5 + salt, and also wrote three scripts to add, delete and change the users password.
In view of the fact that on different servers I use somewhere PostgreSQL, and somewhere MySQL, I spread the description of the settings for both DBMS.
The servers are running ALT Linux ...