Check if the unit is in the permitted list before running migrate dbs
Fix typo
Added unit test
[gnuoy,r=hopem]

Check if the unit is in the permitted list before running migrate dbs