fix the base searching bug and done the email sending of notifying buying books sold out