populate data into database, not finished yet