Make codebase compatible with Postgres. Add test scripts for it and a CI pipeline test. Reviewed-on: #14