Added logging mechanism.
Fixed JPA issues.
Added JPA logging
Improved DBTest class