Minor refactor for easier extensibility
In the previous version it was harder to extend as you could forget to include your symbol in the query list. Also, the queries had some duplication. For extensions this is the easier way forward and the DRYest. Also added the first tests for database monitoring.
Showing with 43 additions and 28 deletions