minor bugfixes and improved last_action view

the migration table keeps its name but the version file gets a new name. Is that a problem?