Moved instantiation of Data access after instantiation of log4j.