Fixed drop per request effect with persistence unit. Added logging of
generated sql.