working on db comms