moved db to local ref