Add indexes and reset migrations

Reset migrations - create new datastore.in and smartdb.in files
Add indexes to smart_manager tables that use timestamps