Adding a non interactive command line option for empty database mode,
together with some refactoring