Database clears before populating