tested DB access in main file