public static Connection ensureTableExists(final Table table) throws SQLException {
  establishConnection();
  try (final Statement stmt=connection.createStatement()){
    stmt.execute(table.getCreationStatement());
    return connection;
  }
 }

public static Connection ensureTableExists ( final Table table ) throws SQLException { establishConnection ( ) ; try ( final Statement stmt = connection . createStatement ( ) ) { stmt . execute ( table . getCreationStatement ( ) ) ; return connection ; } }
call this method before interacting with the database . this ensures that your table does exist before you interact with it . if your table does not yet exist , it will be created .
