Rough cut of save and retrieve from database.