use posgresql as main db