Database module for My Koop responsible for handling queries