Quote mysql names with respect to dots