Update database.rst

Typo (added missing semicolon).
More typos corrected.

Another missing semicolon, and a duplicated 'function'.
Merge pull request #346 from samwilson/patch-1

Update database.rst