Fixed database permissions
Merge branches 'develop' and 'master'