fixed ressource production and mysql insert data