Set dbc and env to NULL to avoid double free
Base sql configs are in main