add controller logic for plans, db schema rake