Mamata demands Railways to give priority to safety of passengers