Added docstring explained populate_database