Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
Change-type: patch Co-authored-by: Pagan Gazzard <page@balena.io> Signed-off-by: Cameron Diver <cameron@balena.io>
We were treating the database class as a singleton, but still having to pass around the db instance. Now we can simply require the db module and have access to the database handle. Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
Closes: #1318 Change-Type: patch Signed-off-by: Miguel Casqueira <miguel@balena.io>