build indexes on importing database