added sqlite timeout to wait for a db lock.