This patch changes the name of the 'user' column to
'username' and replaces the 'replace' syntax with a
delete and an insert done in a transaction.
A perhaps mysql friendly version of the patch would use
the transaction for postgres and replace for mysql
depending on the type of database specified, I suppose.