creating and instanciating materials + add a method that gives the biggest photo_id in local database - need to be tested-