added config stored in db; fleshed out views