rmg_det_to_db: added site directory to error message for easier troubleshooting