Store shell in SQL.

Change-Id: I6b1fc74f39fe89067af48df855df0d781ec26c85