added ssl switch, automatically creation of db directory, docu fix