Add isTable to Database and catch exception in getConnection rather than throw error.