Merge pull request #585 from bhariharan/master

Patch Release 2.2.1
Updated to latest android gradle plugin and latest build tools
Merge pull request #588 from TechFreak/gradle_build_tools_update

Updated to latest android gradle plugin and latest build tools
Making DBHelper access synchronized