Updated DB functions, added config write functions, updated README to reflect changes in config.cfg