make database configurable