sqlite: only init the db once (performance improvement)