Where is the code injection code stored?

Is the code injection code that we write on ghost admin stored on files, or database? If so, where exactly?

Thanks in advanced

The global code injection is stored in the settings table, and per-post/tag code injection is in the post/tag table