db mysql scripts reorganization