Merge pull request #1 from TheEwok/master

Refactor
Merge pull request #2 from TheEwok/master

Stupid mistakes
moving delete query creation into mysql class
First blast at API

Also changed pothole create to throw exceptions
This will probably break other stuff...