Stored procedures and rudimentary data models