db work.

Signed-off-by: Tom Green <kingofcuddles@gmail.com>