trying to get database.js ready to be used in QueueManager