link to db
remove typo
Fix various typos and mishaps after refactor