function queryDatabase, making the  = array() by default
fixing the 404 issue with admin-login, changing the name of authentication controller
returning empty array if login is unsuccessful
creating function for error log for debugging purpose
controllers and dataservice for admin authentication