updating pgsql stuff