Working on the db_populate function, trying to get bugs out.