added include class Database in rest.php & added call functions in addarticle.php