Made fixes for ANC and added db/ folder