Storage of Intents and Entities

Is it possible to store and retrieve intents and entities from the database? if so how?