almost fleshed out basic pipeline, just need to insert into db and remove from db