Fix transaction issue in PostgreSQL when executing DDL that fails; switch to log4j for logging to make logs more readable