Without timeout specified sqlite returns an error whenever it finds the database locked. With the timeout it tries again.