SQL implemented

Still exception in the Mazerunner gl thread (dont know how to fix)