You can restore the deleted database connection from the Talend Studio recycle bin.
Procedure
In the Recycle Bin, right-click the connection and
select Restore.
Results
The database connection is moved back to the Metadata node.