Fixed hvsc db access