share_dimensions function

Share the given dimensions in the database