tweak and logging for db con