SQL commands almost done.