Idea creation with SQL Procedures, Triggers and Functions