Fixes getting inserted primary key value on Open BD.