Fixed create() and update() methods to use supplied $data.