Add contact table and corresponding functions.