db config + class for parsing file, one db call only