forgot the setDb function. Since I'm looping a little different I can't rely on loop counter

also noticed the book.php sneaked in only half finished.
had this planned for a future push but might as well include it now that typeahead works over multiple databases too.
Merge branch 'devcopy' of git://github.com/At-Libitum/cops into devcopy

Highlighting shows better if you add a style for it :)