function to add phones to the database