Adding a character based cursor indicator and fixing some SQL.