Added index updater
Added constrainsts in db