Fix for error of database connection on HHVM

https://github.com/facebook/hhvm/issues/2011