updated dbadaptor