CTS interview question

how do u connect frontend backend database?