Phar path fixed, fixing chmod
Database class fixes