Crash Fix - If the database has no default value for custom permissions, the app crashes