priority fields added in database table and code udpated