Added non-batch (ie. non-CSV) DB insert/update function