Working towards a usable build

Some bug fixes in the process events. Found an issue in modDatabase