Replaced SQLlite with PostgreSQL