[FIX] logging, pg logging use thread db