Modified to give acces to MySQl (it was a pain in the ass)