Change sqllite to postgresql