adding flag whether all graphs should be stored in a single database, or
separately