Check and see if you have the ^userbadges table in your database. If you don't, go to admin/plugins, and rebuild badge list (checking the option to remove all badges first). Even if you do have that table, try this anyway, then see if it works.
Without knowing the actual database error, I can't guess beyond this.