removing sqlite and using postgresql