fix sql for displaying buddies