Created temporary shared connection for database