Make db more configurable