Implement apartment strategy only switching db if it exists.