Hook new permissions system into the database and vice versa