populate_database() now takes corpus as a parameter.