MySQL support for counters table and pro numbers

- [ ] Ready for merge

Implements #1250 

Need to ensure the pro users we have already are inserted in this table, and note that the code doesn't work without a first record being created.

(also contains `console.log` debug).