Allow to reuse an existing database if desired.

Give me a few hours, I'll merge this one and we'll continue