Database install bug fix

Null reference, because of static modifier.
Add getApplicationSupportDirectory

For iOS use, dir used for cached databases (and other uses)
Merge pull request #21 from mvniekerk/master

Some SQLite fixes