Added primary key to all models. Library loans now saves to database