support skin code for db query