Write Protocol version to the db so we can perform sanity checks