Enabled unQueryDB to be serialized
Removed unused Dispose function