How do i connect my database to pull data from database and according to that data need to send messages in twilio ?