Updated PHP unit tests to use composer
Fixed some minor bugs with database creation. Mostly relating to https://github.com/zendframework/ZendSkeletonApplication/pull/197