Corrected an scp timeout bug and a postrare-samps SQL query error