created and populated the contacts table fixed up some var names (for consistency)