finilasing some code in secretary and student

adding error report on failed sql querries