SSL bugfix + SQL mode added