Move SQL tests from t/150_from_to.t to t/505_sql.t