Finally compiles. Still issues with dbc\maps\vmaps... well not sure on maps. Fixed some database queries in this commit