Database install bug fix

Null reference, because of static modifier.
Add getApplicationSupportDirectory

For iOS use, dir used for cached databases (and other uses)