updated setup.py, improved database permissions