Fix bug with not inserting data into first_installs for new packages