changed config file format to JSON
store configurations in the database