Added filtering by table prefix.
Code improvements.
Merge pull request #2 from chrisdavenport/master

Added filtering by table prefix.