Correcting for ssh bug and fixing production database setup