Updated all QueueService functions to use promises and sync with the server