fix(sqlite): retrieve primary key on upsert (#12991)

Khinenw
2021-03-21T23:42:35-03:00

Co-authored-by: Pedro Augusto de Paula Barbosa &lt;papb1996@gmail.com&gt;