Added database sending routine