successfully implemented add contact method, input is added to database