db partially works