Finished up sql for cell, neds to have the database updated to work.