Moving do_sql for tstart to process_common