merged the multiple sql loading functions into one. still experimental.
added a sql execute wrapper
picked some bugs out of the add_pk function and the create_calls