TODO database helper

Signed-off-by: evanq <cppmain@gmail.com>