add way to disable db and api storage code