Change the name of the table to match the model name.
Some refactoring and shorten code.