DB schema: replace username with userid.

 * The code uses "userid" everywhere, but the DB schema uses "username".
   Fix it.
Merge pull request #7 from clopez/fix-dbschema

DB schema: replace username with userid.