Fix preferences constant from String to Integer
set journal_mode of sqlite off. This change allows not to create the journal