Update database.rst

After discussion with @Raydiation, changed entity properties to ```protected```.