implementing userDatabase