Integration changes

Added database access and user profile classes, moved topic identifier
to a different package,  changed some fomatting to java standard,
corrected some classes which were accepting the wrong parameter types,
added support for selecting a user profile