Completed Entire loop, Submit to DB not tested, Need updated database