elasticsearch phpdoc and command api cleanup
better error reporting for db exceptions