database config from json file is working now