Permissions fix for migration

Revert previous fix, add database_name.table_name. before the field
names to deal with CodeIgniter's handling of table names and prefixes