use prepared statement to get file by id to speed up these commonly used queries
Merge pull request #145 from adam-m/master

jni datamodel use prepared statement