testing dir making
Revert "testing dir making"

This reverts commit 125d2ea9ce88e577e80a8976c871c4825940b642.
switched to php style mkdir
check for failing mysql on server..
fixed compiler error
added 'or die' checks on mysql