UserDatabase: respect integer size and signedness

Fix compiler warning on signed/unsigned comparison on line 278 (Mac OS X clang is rightly picky :-)