* refactor server to allow pluggable db and tracing * clean up * fix descriptions * remove dependencies
This can be used in a later PR to optimise our database usage significantly. Avoiding COUNT will be fantastic for our CPU usage, and therefore sync times.