add db implementation