in reply to evaling code stored in database

It would be simpler to place the code snippets into subs and place the name of the subs in the database.