Counter machines and the safety and disjointness problems for database queries with linear constraints

We give a brief review of some known decidability results concerning multi-counter machines. Using these results we show that safety and disjointness of database queries with linear integer constraints are decidable.