select from database when I know all id list