Added params in query_contacts, support deleted? method