Bug fix: error occurs when create new category #37
MySQL cannot accept 0 as the foreign key. It must be an id existing in the foreign key table.