ensure that we honor selects when doing to_sql