fix up the looping case for query.
wg no more global.
clean up dbOpen.
clean up space.
move up db stuff.
bring in an ignore map.