clarification
use mysql and jquery-deferred to insert the code into the database on creation