Update query in books for pgsql.