Actually adding the db check is good

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>