Don't assume connection is available in ORM::save

If `ORM::save` is called before any other querying method and logging is enabled, logging will fail.