First version of DB utils, refactored user management.