Get database name from config JSON

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