added proper unique keys in migration