Fix bug in access control
Update database schema and sample data