fix a query to work with django 1.3
add contact_type to email_client model to recort the type of a contact