change db's code
add autoLogin and global value