Decide based on cmnd-line args what to do (eg generate? start/end db?)