db implementation beginning