add program model to db and add workspace template