Data base table relation tables logic change(parent table and child tables fetch from database)