abstracted DB, created working config class. also started input