Add helper functions, ease work with counters and prepared queries