Added joinQueue and joinGame function to database controller