Refined warnings and project preferences
Fixed plenty of DBCursor resource leaks.