Added DBBase and InsertBase classes