Finished rmg_det_to_db, some TODOs remain.

What is an elegant way to pass QRAAT environment variables to
Python? Also, configuration file for DB credentials.