upload db connection code and test code