Fix appending entries on every database load