Updated httppouch to check if DB exists first.