$database=new database();

ti mancano le parentesi tonde.