You could start with the basics here: A Beginner's Guide to the ESP8266
Once you know how connect to WiFi and how to send HTTP requests, you can start sending data to a web server.
Here's a complete example:
It also contains the server-side code that inserts the received data into a database.
Pieter