Make database used configurable