A function to check for the existence of a database table

This is a function that I use in https://github.com/twisted-infra/trac-config/pull/8 to check for the existence of an existing trac database before attempting to create a test database.

I don't understand the change to the trac subproject commit. Gitseems to do that whenever I create a new branch.