index and db done