Any idea how to show backend data in frontend application.

I have two databases FE and BE. And BE database is password protected. I need to extract data from BE database and need to show in FE in read only format and need to provide one button to change the data.

Any idea how to achieve that. Please let me know if someone has sample code for the same.

Highly appreciate your help.