Issue #3185269 by mondrake, daffie, alexpott, andypost: Introduce Connection::lastInsertId and deprecate the 'return' query option and Database::RETURN_* constants (cherry picked from commit 87dc8f41)