added primary key to db
updated API server to serve comp models