Commiting with ajax insertions for missing codes to DB