whitespace
updated query test
query test only run if query is loaded
only loads query if database is found
added constant for databasename