Forgot to call db.hdel
__dirname & don't shadow data since we need data.code
fixed codepsw, made gold count update in main menu at all times