adding db_connector() function.

Consolidating needed functions in cruftery so I don't have to load data-integrator as well.