Initial code for issue #113

Added stored procedure and map for the model table.