moved some methods over to the user database object

Signed-off-by: Alexander Skjolden <alex@plastboks.net>