re-designed the work. See APP_DB.connector