my first working chat program (sql)