initial db implementation