Fixed input text fields reloading when selecting from history (hopefully).
Added restriction for database query to search based on first name and last name. This should reduce the amount of results that popup in history.