Make database configurable in scripts