Adds user and permission functions. Changes products functions