remove database reference