simplify cluster shapes before inserting to database