move enableInnoDbIfNeeded() to core