Backups for the permissions migration

This PR contains the update to the permission migration script that allows the user to create a backup before proceeding in both mysql and postgres, which are the only databases supported by foreman. 

It also removes the method 'find_os' which is never used.