More database integration

Signed-off-by: Patrick Waivers <pwaivers@gmail.com>