Add return in UnlockAchievement()
Fix achievement DB insert
Add more debug
Rename debug command

sm_ach --> sm_test
Remove debug from SyncAchievements(), disallow bots
Fixes

Create table if not exists.
Remove redundant include.
Remove nonstandard header.