refactoring for insertDiscussion and insertUser on Dao