fixed: if using email plugin in form whose db is in not in the J connection, then ajax load of plugin in admin gave 500 error. This was caused by the sql2 field not forciing the load of the J connection