Fixed bug in DBLogger when generating table with pkey