changed inactive from an integer to a boolean, changed db, model, controller and views