Databasemigrations

Migration status stored in database, also migrations are now being executed in the right order (sorted by timestamp)