modified back end with minor sql syntax error fixed, and front end with search page added