HARMAN interview question

How would you establish connection between database and the application ?