minor fixes related to postgres development