added base.sql; primary_cash redesign