Implemented populate_database function

This function creates records in the dora database from json data from
mds