DB absrtaction for an easy testing