created index, create, and setup db