Merge pull request #24 from Jnesselr/master

Latest batch of changes from Justin - mysql, slicing, client stuff, etc.
removed extra calls to db()->getLink() and made the db automatically connect at startup.
moved the escape to the db abstraction class.