Security model creation and mapping to database.