added log4j api
added verification that the table is already in the DB