Integrating DB and testing