Use Ajax Sync when no database is specified
Merge pull request #34 from axemclion/master

Use ajaxSync if no database is specified