Added database helper that auto caches queries