more tables and store procedure