made the removeblocktype view function called blockinstance->delete rather than access the database itself