psql answer to part 1 problems