get the ajax numbering and saving to database working