I need to develop a lightweight script or micro-service that interfaces with a MySQL database containing stock-market-related records, where it will query specific rows either on a scheduled basis or on-demand, convert the resulting dataset into a clean JSON payload with simple key-value pairs matching a provided schema, and then deliver that payload to a remote endpoint via an HTTP POST webhook authenticated with a bearer token. The solution, which can be written in Python, Node.js, or PHP for reliable operation on a Linux server, must implement parameterized queries or ORM usage to eliminate SQL injection risks, store all credentials securely in external configuration files or environment variables, and include a robust retry mechanism with exponential backoff and comprehensive logging for any failed webhook deliveries that don't return a 200 OK response. The deliverable should include well-commented source code mapping the specified database fields to the required JSON structure, a detailed README covering setup instructions, cron/scheduler configuration, and example curl commands for testing, along with a sample output JSON that validates against the endpoint's requirements, after which I will conduct live testing against the actual endpoint and provide final sign-off once successful data posting and proper acknowledgment logging are confirmed.