Update database-basics.rst

Fixed typo.
Merge pull request #1518 from vttn/patch-2

Update database-basics.rst
Fix CakePHP conventions

Fix some error in example :
class Articles extends Table 
to
class ArticlesTable extends Table
Merge pull request #1520 from matthieuy/patch-1

Fix CakePHP conventions
Fix build warnings.
Fixed minor typos and corrected needed text for ORM's table objects
Merge pull request #1521 from amitrb/3.0

Fixed minor typos and corrected needed text for ORM's table objects