Made the API search parameter try any query where a search parameter was specified first in natural mode and, if that returns no results, try again in boolean mode before returning the string of data JSON. Also messed around with the procedures of logging a user in and added a snippit of php to the top of index.php to illustrate it.