Set SSH keys and fix database permissions in dbrun