handle the case where there is no data in db yet.