Got db connection working