Finish widget db implementation.