removed second db connection