bin/map: Move retrieval of out_db's relational functions outside of process_input() so they can also be used by the non-by_col case
bin/map: Move retrieval of out_db's relational functions outside of process_input() so they can also be used by the non-by_col case