Databases: Chmod set to writeable for php
Core: multiple fixes