added timeout setting for sqlite to aquire a lock