WannesNaf:
I take a sample every 20 seconds.
I'm not sure what this means. Are you saying that your Arduino captures a sample from the analog ports every 20 seconds and sends it to the web server?
If not, how often does the Arduino take a sample and how often does it send a sample to the web server and how often does the web server write the sample to the database?