changed dbadaptor from DBConnection class to DBAdaptor