Implemented log4j database logging