save shape to db