UserDatabase: respect integer size and signedness

Fix compiler warning on signed/unsigned comparison on line 278 (Mac OS X clang is rightly picky :-)
Merge pull request #49 from marco-m/patch-2

UserDatabase: respect integer size and signedness