Executing doc, sql, or mongo in sequence