finishing SQLAdapter.java (testing still needed)