Permit overriding of default timeout

Minimal changes to permit custom timeouts.

Default is already 5 seconds: http://docs.python.org/2/library/sqlite3.html