Queries a sample movie database using ajax, with php fallback