load database details from config file, rather than hardcoding sqlite path
add error handling for JSON parse errors