Added option to set cache size of sqlite database
Added option to set PRAGMA synchronous and PRAGMA journal_mode