chore(db): Remove use of global db functions from all classes