add md5url for uniq url and make some refactoring
add migrations
add migrations script