Fix the default database for --persist
Check that file exists before reading
Fix logic of --persist