many updates for mysql database and logic of local/production env