eventually it will use this sql command
handle captions properly for commons