Set timeout on db connection