adding db changes for queue