Handle "to" field via db in comments insertion. Remove duplicated line in sql function