refactoring
fix bug of deleting table
Merge Michael's change at
branch 'master' of https://github.com/sctravel/knowledgeRepo
adding constant tablenames and fixing bugs in storing to DB