finish sql_object