[riba] fix functions
[riba] riba file export working, moved province to state_id