Added option for connection time-out. Defaults at 10 minutes.

Added the option to specify connection time out in case the database takes longer than default connection timeout.