fix a sql selection bug
fix first login user disconnect problem