Updated Model

Updated sql model and applied it to db