Librarian Controller update

Updated Librarian controller based on testing for some SQL Injections
and XSS Attacks conducted after integration with UI began.