move db mock to utils