Fix build for postgres and create schema