! fix for #866 unable to delete smiley
! remove extra $db = database

Signed-off-by: Spuds <spuds@spudsdesign.com>