Added db setup and teardown

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