Database table, news, blog and file toJSON method implemented