More db_access functions, started work on client connection handling and message passing.