implementing putting beads and frames in db