added cleanup rake tasks to get the database to match the actual shop
added remaining hooks & handle case where a hook is available