Fixed issue keeping purchases from being saved

added menu items for permissions.

fixed mysql error in dump file