New way of opening db