building qci db model..