completed kue worker and added basic db abstraction