make chack box from database