abstract db,messaging classes. update relationships