add lib/pq support; bool on struct will not be as condition;
merged