public List<String> tableNames(String schema) throws SQLException {
        ArrayList result = new ArrayList();
        ResultSet rs = statement.executeQuery(String.format(getTableStatement, schema));
        while (rs.next()) {
            result.add(rs.getString(1));
        }
        return result;
    }