finished sql command