Uses psql "if exists" to avoid errors