Hooked back into the front end now.  Now converting so that the front end can access the DB values via Key value rather than having to loop every time which isnt ideal