updated ajax functions and php/database interface

ajax calls now take arguments, php  files now query by symbol.

untested.