switched to activerecord for saving contacts