Finished exchange of SQlite with PostgreSQL