change db to look at the db in its own server
added functionality to delete old queues