Create Function

Added functionality for create and added the insert statements for the
DB
Fixed DB logic errors

Model_cid had some logic errors. Changed How the dashboard displays some
elements