Added basic support for migrations