added DB interaction