Building DB access calls
Building RMI connectivity, phase 1. Also tidy up