Incorporates websockets to limit database queries