Added database support

Signed-off-by: Tanya Gray <tanyagray.nz@gmail.com>