now populates db onload