Setting new DB ID for added rows