Added "db" option to display knowlegebase
Added document level search querying and changed db printout
Main functions complete