Theme Preview: Disable database writes from within WordPress for logged out users, to avoid even attempting to connecting to the primary database server.