add index and password to migration