This is example code to give you an idea how to send some response. Of course you can adapt this code for your own database and answers.