My blog was getting an error every once in a while, probably if no connection was made in 8 hours.
This happens because neither AR and Datamapper close their connections letting the database to take care of it, so I tried to change MySQL setting to:
wait_timeout = 259200
but this won't help me much so I will try some hacking tonite and update this post again.