Added reconnect to mysql

Would it not be possible to do this when issuing the actual query? So that instead of issuing 2 queries each time we issue 1 and if that fails then try a reconnect, before failing permanently?