More code additions for db comms