added 'local' to type spec 'connection_type()', implemented 'add_to_table/6'