miscellaneous updates, added mongodb functions and ubic service