Merge pull request #11 from pjohans/development

Issue #622 by Pjohans: cql.anyIndexes does not exist - use term.default
Issue 626 by Pjohans: try catch on drupal_write_record to catch unhandled PDO exception