change db to global