send data to a db
fixed problem with ingestion order