Changed cards.ID to auto increment
Changed so that we use Acnode_model to fetch permissions