Replaced typeof with instanceOf in object test

Added condition that disables _query_log when debug=false
Removed caller.name from throwError()
Fixed duplicate entry when multiple INSERT VALUES exist
Removed loaded database condition in createDatabase()

Added code to autoload "USE" databases that are passed as constructor arguments

Updated copyright year
Added QUnit test-cases