Create base_sql