Added QCL_APPLICATION_STATE constant to prevent modification of database schme in production mode