Added optional parameters to DB statements so that HHVM won't complain about interfaces not being compatible