public deck sql error fix