swap sqlite with pg