testing Connection.java
deleting old function and testing new ones