Fix for wrong database fields

The following commit changes 'is_required' to 'required' in the code but the installations creates a database with 'is_required'. This is a fix for the database.