Shiprocket interview question

How to connect database and how to optimize your application