Completed searching our database using python