Fix boolean types, add PostgreSQL schema