fix a bug in release mysql connection
add lockstr to getcard