Added functions to insert, find by Id and find by userId