got db connection working